package us.mooresr.webtroopmanager.client.ui;

import java.util.List;

import us.mooresr.webtroopmanager.shared.Privilege;
import us.mooresr.webtroopmanager.shared.VehicleSummary;



import com.google.gwt.place.shared.Place;
import com.google.gwt.user.client.ui.IsWidget;

public interface VehicleListView extends IsWidget {
	void setData(List<VehicleSummary> data);
	void setPresenter(Presenter presenter);
	void addVehicle(VehicleSummary vehicleSummary);
	void removeVehicle(Long vehicleId);
	void setStatus(String status);

	public interface Presenter {
		void goTo(Place place);
		Boolean hasPermission(Privilege priv);
		void deleteVehicle(VehicleSummary vehicle);
		Boolean isAllowed(Privilege p, Long id);
	}
}
